#ifndef TEA_USER_H
#define TEA_USER_H

#include <QWidget>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlQuery>
#include <QSqlTableModel>
#include <QItemSelectionModel>
#include <QString>
#include <QMessageBox>
#include <QDebug>
#include <QSqlRecord>
#include <QDate>
#include <QDateTime>
#include <QTimer>
namespace Ui {
class tea_user;
}

class tea_user : public QWidget
{
    Q_OBJECT

public:
    explicit tea_user(QWidget *parent = nullptr);
    ~tea_user();

private slots:
    void on_Search_FreeTime_clicked();

    void on_Search_Time_clicked();

    void on_ApplyBt_clicked();

    void on_Search_clicked();

    void on_Delete_clicked();

    void on_Save_clicked();

    void on_Cancel_clicked();
public slots:
    void timeUpdate(void);
private:
    Ui::tea_user *ui;
    QSqlDatabase db;
    QString cmd;//数据库命令
    QString uiWeekNumber;
    QString uiWeek;
    QString uiTime;
    QString uiExpCourse;
    QString uiExpName;
    QString uiExpClass;
    int ExpMembers;
    bool a =false;
    bool b =false;
    bool c =false;
    bool d =false;
    bool e =false;
    QSqlTableModel *tea_model;
    QSqlRecord record;
    QItemSelectionModel *select;
};

#endif // TEA_USER_H
